home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d2 / pcwiz01.arc / FIND.INS < prev    next >
Text File  |  1991-08-22  |  3KB  |  73 lines

  1. FIND      Allows for searching through a file in order
  2.           to determine the existence, and location, of
  3.           a specific string of text characters.
  4.  
  5. Format:   FIND [/C][/N][/V]"String"[D:Path][FileSpec]
  6.  
  7.    /C   COUNTS the number of lines that contain the
  8.         specified "string" and displays this total.
  9.  
  10.    /N   includes the NUMBER(s) of the line(s) where
  11.         the "string" was found.
  12.  
  13.    /V   displays each line NOT containing the "string"
  14.  
  15.  
  16. [**] The syntax rules for PC-Wizard require that when
  17.    /* switches are NOT used that the string BEGIN with
  18.    a single-quote ['] and END with a double-quote ["].
  19. Example:      FIND /N "PC-Wizard" MANUAL.DOC
  20.  
  21.    Searches the file named MANUAL.DOC in the CURRENT
  22.    directory and displays each line of text and line
  23.    number in which the string "PC-Wizard" was found.
  24.  
  25. Example:      FIND "714" \FRIENDS\PHONES.TXT
  26.  
  27.    Searches the file named PHONES.TXT in the \FRIENDS
  28.    directory on the CURRENT drive and displays each
  29.    line in which the string "714" was found.
  30.  
  31. Example:   FIND /C/V "714" D:\FRIENDS\PHONES.TXT
  32.  
  33.    Searches the file named PHONES.TXT in the \FRIENDS
  34.    directory on drive D: and reports the total number
  35.    of lines where the string "714" was NOT found. Does
  36.    NOT display the individual lines of text.
  37. Example:     FIND "S" \BUSINESS\ADDRESS.TXT
  38.  
  39.    Displays each line of text in which the string "S"
  40.    appeared in the file named ADDRESS.TXT in the
  41.    \BUSINESS directory on the CURRENT drive.
  42.  
  43. Example:   FIND "S" \BUSINESS\ADDRESS.TXT >SADD.BUS
  44.  
  45.    Same as above, except redirects the output to a
  46.    file named SADD.BUS and places it in the CURRENT
  47.    directory.
  48.  
  49. Example:  FIND "Washington" CITY.TXT PRESIDENTS.TXT
  50.  
  51.    Searches the files  CITY.TXT and PRESIDENTS.TXT
  52.    and displays a separate listing for each of these
  53.    files where the string "Washington" was found.
  54.  
  55. [*]  The FIND command is "case" sensitive and will
  56.   only locate "strings" that match EXACTLY.
  57.  
  58. [*]  The FIND command will NOT accept wildcards.
  59.  
  60. [*]  Search terminates as soon as the first Ctrl-Z
  61.   in the file is encountered.
  62.  
  63. [*]  The FIND command can also be used as a PIPE, as
  64.   in the following example:
  65.  
  66.            DIR C:\DOS |FIND /V "SYS"|MORE
  67.  
  68.    Displays a listing of all the files in the C:\DOS
  69.    directory with the exception of those containing
  70.    the string "SYS" and pauses at the end of each
  71.    full screen. (Issue from DIR or WildCard Command
  72.    Lines ONLY!!)
  73.